use tracing::Level;

pub fn new() {
    let subscriber = tracing_subscriber::fmt()
        .with_max_level(Level::TRACE)
        .finish();
    tracing::subscriber::set_global_default(subscriber)
        .expect("no global subscriber has been set");
}

pub fn trace(content: &str) {
    tracing::trace!(content);
}

pub fn debug(content: &str) {
    tracing::debug!(content);
}

pub fn info(content: &str) {
    tracing::info!(content);
}

pub fn warn(content: &str) {
    tracing::warn!(content);
}

pub fn error(content: &str) {
    tracing::error!(content);
}

